import { IInterViewQuery, ISkillAddItem, ISkillListQuery, IInterViewShield, IInterViewListQuery } from '@/utils';
import { request } from 'umi';

// 获取专业列表
export let getSkillLabel = () => {
    return request('/sxpt/station/selectStationLabel')
}

// 删除一条数据
export let getSkillSelect=(params:any)=>{
    return request('/sxpt/station/selectStationVersionList',{params})
}

export let getSkillList = (params: ISkillListQuery) => {
    return request('/sxpt/station/selectStationVersionList?isAsc=desc&pageNum=1&pageSize', { params })
}

// 添加岗位
export let addPostSkill = (data: ISkillAddItem) => {
    console.log(data);
    return request('/sxpt/station', {
        method: 'POST',

        data    // 表示请求体
    })
}
//获取岗位详情
export let getSkillDetail = (stationVersionId: string) => {
    return request(`/sxpt/station/selectStationListById/${stationVersionId}`)
}

// 删除岗位数据
export let getDeleteStation = (params: any) => {
    return request(`/sxpt/station/deleteStation?stationVersionId=${params.stationVersionId}`, {
        method: 'DELETE'
    })
}
// 提交审核
export let getAudit = (params: any) => {
    console.log(params)
    return request(`/sxpt/station/updateStationStatus`, params)
}

// 撤销审核
export let getRevocation=(params:any)=>{
console.log(params)
    return request('/sxpt/station/updateStationStatusCancel',params)
}
//首頁列表 請求   ****************** ****************** ****************** ******************


// ****************************关于面试请求********************************************
// 获取面试记录管理数据
export let gitInterviewManage = (params: ISkillListQuery) => {
    return request('sypt/interview/interviewManage?pageNum=1&pageSize', { params })
}


export let getInterViewFilter = (params: IInterViewQuery) => {
    return request('/sypt/interview/interviewList?searchTitle=&status=&pageNum=1&pageSize=10&majorId', { params })
}

// 获取面试班级列表
export let getClassInfo = () => {
    return request('/sxpt/classPlan/getClassInfo')
}
// 获取面试记录榜单
export let getInterViewRankList = (params: any) => {
    return request('/sxpt/interview/interviewRecordRangkingTeacher?classId=', params)
}
// 获取面试题榜单
export let getInterViewRList = (params: IInterViewListQuery) => {
    return request('/sxpt/interview/interviewAnswerRangkingTeacher?pageNum=1&pageSize=10&classId', { params })
}
// 获取面试记录数据
export let getInterViewList = (params: ISkillListQuery) => {
    return request('sypt/interview/interviewList?isAsc=desc&pageNum=1&pageSize', { params })
}
// 屏蔽
export let getShieldList = (params: IInterViewShield) => {
    return request('/sypt/interview/deleteInterview', { params })
}
// 面试记录详情
export let getInterViewDetails = (params: string) => {
    return request('/sypt/interview/info/' + params)
}
// ****************************关于面试请求********************************************